home *** CD-ROM | disk | FTP | other *** search
/ Amiga Format CD 43 / Amiga Format CD43 (1999)(Future Publishing)(GB)(Track 1 of 2)[!][issue 1999-09].iso / -serious- / wb / wbchanger / install_wbchanger < prev    next >
Text File  |  1999-06-15  |  9KB  |  356 lines

  1. ; Skrypt instalacyjny dla programu WBChanger (1998-1999)
  2. ;
  3. ;    $VER: WBChanger v0.6 by ZATOR (20.05.1999)
  4. ;
  5.  
  6.  
  7.  
  8. (set #ver_comm (/ (getversion "libs:commodities.library") 65536))
  9. (set #ver_icon (/ (getversion "libs:icon.library") 65536))
  10. (set #ver_work (/ (getversion "workbench.library") 65536))
  11. (set #ver_dops (/ (getversion "libs:dopus5.library") 65536))
  12.  
  13. (set wybr
  14.     (askchoice
  15.         (prompt "Jëzyk/Language")
  16.         (help @askchoice-help)
  17.         (choices "ENGLISH (INGLISH)" "POLSKI")
  18.         (default 0)
  19.     )
  20. )
  21. (if (= wybr 1)
  22. (
  23. (set #witam "Witam w programie instalacyjnym programu\nWBChanger\nDziëki temu skryptowi zainstalujesz oraz skonfigurujesz program")
  24. (set #info ("\nWersje (zainstalowanych u ciebie) wymaganych bibliotek:\n\ndopus5.library - %ld (opcja DOPUS5)\ncommodities.library - %ld\n icon.library - %ld\n\n" #ver_dops #ver_comm #ver_icon))
  25. (set #gdzie "Gdzie zainstalowaê dodatkowe pliki dla WBChanger'a??")
  26. (set #help_gdzie "Te dodatkowe pliki sâ wymagane do poprawnej pracy WBChanger'a\nDo nich skopiujesz preferencje swojego Workbench'a...\nDo katalogu 1 - preferencje peînego Workbench'a/DOPUS'a\nDo katalogu 2 - preferencje okrojonego/drugiego Workbench'a/DOPUS'a\n\nNie kasuj pliku 'wbch', gdyû ten plik jest wymagany do poprawnej pracy programu!\n\nDo katalogów 1 i 2 kopiuj tylko pliki z 'ENV:Sys/' lub 'ENVARC:Sys/' !!!")
  27. (set #help_wbch "Skopiuj WorkbenchChanger'a do katalogu 'sys:WBSTARTUP/' jeôli chcesz aby program dziaîa po kaûdym wgraniu Workbench'a/Dopus'a")
  28. (set #tworze "Tworze katalog")
  29. (set #tworze_plik "Tworze plik")
  30. (set #kopiuj_wb "Gdzie skopiowaê program WBChanger?")
  31. (set #info_wd "Co uûywasz?")
  32. (set #workbench "Skrypt teraz skonfiguruje WBChanger'a pod Workbench'a")
  33. (set #wb_copy "Ustaw teraz jak ma wyglâdaê peîny Workbench\n i naciônij 'Kontynuuj'")
  34. (set #what_copy "Jakie ustawienia majâ sië zmieniaê?")
  35. (set #pl_wybor1 "Tryb wyôwietlania - screenmode.prefs")
  36. (set #pl_wybor2 "Podkîady - wbpattern.prefs")
  37. (set #pl_wybor3 "Paleta - palette.prefs")
  38. (set #info_copywb "Kopiuje pliki konfiguracyjne")
  39. (set #workbench_old "Ustaw teraz jak ma wyglâdaê niepeîny Workbench\n i naciônij 'Kontynuuj'")
  40. (set #info_sel "Jakie opcje majâ byê wîâczone/wyîâczone?")
  41. (set #info_sel1 "dodatkowa pozycja w menu górnej belki")
  42. (set #info_sel2 "dodatkowa ikonka na blacie")
  43. (set #help_wbdp "Opcja : \n Workbench - ustawiasz preferencje pod Workbench'a\n DOPUS5 - ustawiasz preferencje pod Opus'a 5^ i Workbench'a")
  44. (set #info_opus "Jeôli bëdziesz miaî jakieô problemy z opcjâ WB_OPUSMODE=ON\nTo po próbuj zmieniê parametr DELAY")
  45. (set #info_opus1 "Zrób dwie konfiguracje Opus'a jednâ peînâ, drugâ niepeînâ..\n Zapisz je pod dowolnymi nazwami i naciônij 'Kontynuuj'\n")
  46. (set #name_env1 "Podaj nazwe peînej konfiguracji")
  47. (set #name_env2 "Podaj nazwe okrojonej konfiguracji")
  48. (set #name_delay "Jakie ma byê opóûnienie miëdzy zmianâ konfiguracji DOPUSa, a WB (polecane min. 5)")
  49. ))
  50.  
  51. (if (= wybr 0)
  52. (
  53. (set #witam "Welcome in program installer to install programe\nWBChanger\nWith this script you install and configure programe")
  54. (set #info ("\nVersion (installed on your HD) of library:\n\ndopus5.library - %ld (opcja DOPUS5)\ncommodities.library - %ld\n icon.library - %ld\n\nP.S.\n  Sorry, my english is very poor, but better than my German.\nPlease if you have some free time fix my errors.\nAnd send correct version to me!!" #ver_dops #ver_comm #ver_icon))
  55. (set #gdzie "Where install additional files for WBChanger??")
  56. (set #help_gdzie "This file is need to correct work of programe WBChanger.'a\nTo this directory copy your configuration of WB...\nTo drawer 1 - preferences full workbench'a/DOPUS'a\nTo drawer 2 - preferences non-full Workbench/DOPUS\n\nDon't delette file 'wbch', this file is need to correct work programe!!\n\nTo drawer 1 and 2 copy only files from 'ENV:Sys/' or 'ENVARC:Sys/' !!!")
  57. (set #help_wbch "Copy WorkbenchChanger to 'sys:WBSTARTUP/' if you want to work this programe always when you load Workbench/Dopus")
  58. (set #kopiuj_wb "Where copy programe WBChanger?")
  59. (set #what_copy "Which preferences gonna change?")
  60. (set #pl_wybor1 "Screen Mode - screenmode.prefs")
  61. (set #pl_wybor2 "Patterns - wbpattern.prefs")
  62. (set #pl_wybor3 "Palette - palette.prefs")
  63. (set #tworze "Creating new directory")
  64. (set #tworze_plik "Creating new file")
  65. (set #info_wd "What you use??")
  66. (set #workbench "Script configure WBChanger for Workbench now")
  67. (set #wb_copy "Set how full Workbench have look now")
  68. (set #info_copywb "Copying configuration files")
  69. (set #workbench_old "Set how non-full Workbench have look now\n and press 'Continue'")
  70. (set #info_sel "Which options on/off?")
  71. (set #info_sel1 "extra position in appmenu")
  72. (set #info_sel2 "extra icon on the WB window")
  73. (set #help_wbdp "Option : \n Workbench - set preferences for Workbench'a\n DOPUS5 - set preferences for DOPUS 5^")
  74.  
  75.  
  76. (set #info_opus "IF you had any problems with option WB_OPUSMODE=ON\nThen try change parameter DELAY")
  77. (set #info_opus1 "Make 2 configurtion file for Opus.\n First - Full, Next - Non-full \n Save it and press 'Continue'\n")
  78. (set #name_env1 "Insert name of the full configuration file")
  79. (set #name_env2 "Insert name of the non-full configuration file")
  80. (set #name_delay "How long have delay between change Workbench configuration and DOpus5 configuration (recommend min. 5)")
  81. ))
  82.  
  83. (welcome #witam)
  84.  
  85. (message #info)
  86.  
  87. (set #wyb1
  88.     (askdir
  89.         (prompt #gdzie)
  90.         (default "DH0:tools/")
  91.         (help #help_gdzie)
  92.     )
  93. )
  94.  
  95. (set #wyb2 (tackon #wyb1 "WBCHANGER"))
  96.  
  97. (set #wyb3 (tackon #wyb2 "1"))
  98. (set #wyb4 (tackon #wyb2 "2"))
  99. (set #wyb5 (tackon #wyb2 "2/wbch1"))
  100.  
  101. (makedir #wyb2
  102.     (prompt #tworze) 
  103.     (safe)
  104.     (help #help_gdzie)
  105. )
  106.  
  107. (makedir #wyb3
  108.     (prompt #tworze) 
  109.     (help #help_gdzie)
  110. )
  111.  
  112. (makedir #wyb4
  113.     (prompt #tworze) 
  114.     (help #help_gdzie)
  115. )
  116.  
  117. (textfile
  118.     (prompt #tworze_plik)
  119.     (help #help_gdzie)
  120.     (dest #wyb5)
  121.     (append "YES\n")
  122. )
  123.  
  124. (set #wb_sel
  125. (copyfiles
  126.     (prompt #kopiuj_wb)
  127.     (source "WorkbenchChanger")
  128.     (dest "sys:wbstartup/")
  129.     (confirm)
  130.     (infos)
  131.     (help #help_wbch)
  132. )
  133. )
  134.  
  135.  
  136. (set wyb9
  137.     (askchoice
  138.         (prompt #info_wd)
  139.         (help #help_wbdp)
  140.         (choices "Workbench" "DOPUS5 & Workbench")
  141.         (default 0)
  142.     )
  143. )
  144.  
  145.  
  146. (
  147.  
  148. (message #workbench)
  149.  
  150. (message #wb_copy)
  151.  
  152. (set wybr4
  153.     (askoptions
  154.         (prompt #what_copy)
  155.         (help @askoptions-default)
  156.         (choices #pl_wybor1 #pl_wybor2 #pl_wybor3)
  157.     )
  158. )
  159.  
  160. (set #wybd (tackon #wyb1 "WBCHANGER/1/"))
  161.  
  162. (if (BITAND wybr4 %1)
  163. (
  164. (copyfiles
  165.     (prompt #info_copywb)
  166.     (source "ENV:sys/screenmode.prefs")
  167.     (dest #wybd)
  168.     (help @copyfiles-default)
  169. )))
  170.  
  171.  
  172. (if (BITAND wybr4 %10)
  173. (
  174. (copyfiles
  175.     (prompt #info_copywb)
  176.     (source "ENV:sys/wbpattern.prefs")
  177.     (dest #wybd)
  178.     (help @copyfiles-default)
  179. )))
  180.  
  181.  
  182. (if (BITAND wybr4 %100)
  183. (
  184. (copyfiles
  185.     (prompt #info_copywb)
  186.     (source "ENV:sys/palette.prefs")
  187.     (dest #wybd)
  188.     (help @copyfiles-default)
  189. )))
  190.  
  191. (message #workbench_old)
  192.  
  193. (set #wybd (tackon #wyb1 "WBCHANGER/2/"))
  194.  
  195. (if (BITAND wybr4 %1)
  196. (
  197. (copyfiles
  198.     (prompt #info_copywb)
  199.     (source "ENV:sys/screenmode.prefs")
  200.     (dest #wybd)
  201.     (help @copyfiles-default)
  202. )))
  203.  
  204.  
  205. (if (BITAND wybr4 %10)
  206. (
  207. (copyfiles
  208.     (prompt #info_copywb)
  209.     (source "ENV:sys/wbpattern.prefs")
  210.     (dest #wybd)
  211.     (help @copyfiles-default)
  212. )))
  213.  
  214.  
  215. (if (BITAND wybr4 %100)
  216. (
  217. (copyfiles
  218.     (prompt #info_copywb)
  219.     (source "ENV:sys/palette.prefs")
  220.     (dest #wybd)
  221.     (help @copyfiles-default)
  222. )))
  223.  
  224.  
  225. (set wybr5
  226.     (askoptions
  227.         (prompt #info_sel)
  228.         (help @askoptions-default)
  229.         (choices #info_sel1 #info_sel2)
  230.     )
  231. )
  232.  
  233. (set #wb_icon (tackon #wb_sel "WorkbenchChanger"))
  234.  
  235. (if (BITAND wybr4 %1)
  236. (
  237.     (tooltype 
  238.     (dest #wb_icon)
  239.     (settooltype "(WB_MENU")
  240.     )
  241.     (tooltype 
  242.     (dest #wb_icon)
  243.     (settooltype "WB_MENU" "ON")
  244.     )
  245. ))
  246.  
  247.  
  248. (if (BITAND wybr4 %10)
  249. (
  250.     (tooltype 
  251.     (dest #wb_icon)
  252.     (settooltype "(WB_ICON")
  253.     )
  254.     (tooltype 
  255.     (dest #wb_icon)
  256.     (settooltype "WB_ICON" "ON")
  257.     )
  258. ))
  259.  
  260.     (tooltype 
  261.     (dest #wb_icon)
  262.     (settooltype "WB_SOURCE")
  263.     )
  264.     (tooltype 
  265.     (dest #wb_icon)
  266.     (settooltype "WB_SOURCE" #wyb2)
  267.     )
  268.  
  269. )
  270.  
  271. (if (= wyb9 1)
  272. (
  273. (message #info_opus)
  274. (message #info_opus1)
  275.  
  276. (set #env1
  277.     (askstring
  278.         (prompt #name_env1)
  279.         (help @askstring-help)
  280.         (default "workbench")
  281.     )
  282. )
  283.  
  284. (set #env2
  285.     (askstring
  286.         (prompt #name_env2)
  287.         (help @askstring-help)
  288.         (default "workbench1")
  289.     )
  290. )
  291.  
  292. (set #dlay
  293. ("%ld" (set #delay
  294.     (asknumber
  295.         (prompt #name_delay)
  296.         (help @asknumber-help)
  297.         (range 1 30)
  298.         (default 5)
  299.     )
  300. )))
  301.  
  302.  
  303.     (tooltype 
  304.     (dest #wb_icon)
  305.     (settooltype "OPUS_ENV1")
  306.     )
  307.     (tooltype 
  308.     (dest #wb_icon)
  309.     (settooltype "OPUS_ENV1" #env1)
  310.     )
  311.  
  312.  
  313.     (tooltype 
  314.     (dest #wb_icon)
  315.     (settooltype "OPUS_ENV2")
  316.     )
  317.     (tooltype 
  318.     (dest #wb_icon)
  319.     (settooltype "OPUS_ENV2" #env2)
  320.     )
  321.  
  322.  
  323.  
  324.     (tooltype 
  325.     (dest #wb_icon)
  326.     (settooltype "WB_OPUSMODE")
  327.     )
  328.     (tooltype 
  329.     (dest #wb_icon)
  330.     (settooltype "WB_OPUSMODE" "ON")
  331.     )
  332.  
  333.     (tooltype 
  334.     (dest #wb_icon)
  335.     (settooltype "DELAY")
  336.     )
  337.     (tooltype 
  338.     (dest #wb_icon)
  339.     (settooltype "DELAY" #dlay)
  340.     )
  341.  
  342.  
  343.  
  344. ))
  345.  
  346.  
  347.  
  348. (if (= wybr 1)
  349.     (run "c:More WorkbenchChanger.docPL")
  350. )
  351. (if (= wybr 0)
  352.     (run "c:More WorkbenchChanger.docENG")
  353. )
  354.  
  355.